package itcz.example.pattern.structure_type.proxy.jdk_proxy;


/**
 * @author itcz
 * @date 2025/04/20
 * @desc JDK代理(动态代理)
 */
public class Client {
    public static void main(String[] args) {
        ProxyFactory proxyFactory = new ProxyFactory();
        int count = proxyFactory.getProxyObject().sell();
        System.out.println("买票后剩余：" + count);
    }
}
